﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="DraftUserWeekPlan.aspx.cs"
    Inherits="UserPlanWeek_DraftUserWeekPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>员工周计划添加</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="firstbjcolor" colspan="8">
                    <span class="currentHere">当前位置:员工周计划管理-&gt;待发员工周计划</span>
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                    height: 30px;">
                    部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                    </asp:DropDownList>
                    年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged"
                        AutoPostBack="True" SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    月周期:<asp:DropDownList ID="drpMonthDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpMonthDate_SelectedIndexChanged"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    周周期:<asp:DropDownList ID="drpWeekDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpWeekDate_SelectedIndexChanged"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    <asp:CheckBox ID="ckbAllSelect" runat="server" AutoPostBack="True" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                        Text="全选" SkinID="checkboxSkin" /><asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click"
                            SkinID="buttonSkin" Text="删除" OnClientClick="return confirm('确认要删除吗？');" />
                    <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" SkinID="buttonSkin"
                        Text="修改" />
                    <asp:Button ID="btnOk" runat="server" Text="立即提交" OnClick="btnOk_Click" SkinID="buttonSkin"
                        Width="60px" OnClientClick="return confirm('确认要提交吗？');" />
                    <asp:Button ID="btnAttachmentPath" runat="server" OnClick="btnAttachmentPath_Click"
                        Text="附件" SkinID="buttonSkin" Width="60px" />
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="height: 14px; width: 98.1%" id="Div1">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="background-color: #ffffff;">
                                <td class="PlanModifyTableHeader" style="width: 4%" align="center">
                                    选择
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 4%" valign="middle" align="center">
                                    计划编号
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    计划名称
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    实施步骤
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 6%">
                                    计划来源
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    完成时间
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 6%">
                                    责任部门
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 5%">
                                    责任人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    配合部门<a href="#" onclick="javascript:slavedepartment(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    配合部门责任
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" style="width: 5%" align="center">
                                    评估人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" style="width: 10%" align="center">
                                    评估意见
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 8%" valign="middle" align="center">
                                    备注
                                </td>
                                <td align="center" class="PlanModifyTableHeader" style="width: 6%" valign="middle">
                                    附件下载
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="overflow-y: scroll; height: 450px; width: 100%" id="dvBody">
                        <asp:GridView ID="gdvWeekPlan" runat="server" AutoGenerateColumns="False" DataKeyNames="AttachmentPath,WeekPlanId,MonthPlanId,Source"
                            SkinID="gridviewSkin" Width="99.2%" ShowHeader="False" 
                            EnableModelValidation="True">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="WeekPlanSortId" HeaderText="计划编号">
                                    <ItemStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    <HeaderStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="10%" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PlanStep" HeaderText="实施步骤">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="10%" Wrap="True" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="计划来源">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnSource" runat="server" Width="80%" CausesValidation="False"
                                            OnClick="lbtnSource_Click"></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                    HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                    <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <HeaderStyle Width="5%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <HeaderStyle Width="6%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="6%" HorizontalAlign="Center" VerticalAlign="Middle" 
                                    Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任" 
                                    HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <HeaderStyle Width="5%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CheckNote" HeaderText="评估意见">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" 
                                    Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Remart" HeaderText="备注" HtmlEncode="False">
                                    <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="8%" HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="AttachmentPath" HeaderText="文件保存路径" Visible="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="附件下载">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDownLoad" runat="server" OnClick="btnDownLoad_Click" Text="下载"
                                            SkinID="buttonSkin" />
                                        <asp:Label ID="lblAlert" runat="server" Visible="False" SkinID="labelSkin"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="WeekPlanId" HeaderText="id" Visible="False">
                                    <HeaderStyle Wrap="False" Width="0px" />
                                    <ItemStyle Width="0px" HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Source" HeaderText="Source" Visible="False">
                                    <HeaderStyle Wrap="False" Width="0px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="0px" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MonthPlanId" HeaderText="MonthPlanId" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
